﻿<Page
    x:Class="EightOData.GiftEditionPage"
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    xmlns:local="using:EightOData"
    xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
    xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
    mc:Ignorable="d">

    <Grid>
        <Grid.Background>
            <ImageBrush ImageSource="Assets/Background-3.jpg" />
        </Grid.Background>
        
        <Grid.RowDefinitions>
            <RowDefinition Height="140"/>
            <RowDefinition Height="*"/>
        </Grid.RowDefinitions>

        <!-- Back button and page title -->
        <Grid>
            <Grid.ColumnDefinitions>
                <ColumnDefinition Width="Auto"/>
                <ColumnDefinition Width="*"/>
            </Grid.ColumnDefinitions>
            <Button x:Name="backButton" Style="{StaticResource BackButtonStyle}" Tapped="BackButton_Tapped"  />
            <TextBlock x:Name="pageTitle" Text="{StaticResource AppName}" Grid.Column="1" IsHitTestVisible="false" Style="{StaticResource PageHeaderTextStyle}" Foreground="Black" />
        </Grid>
        
        <StackPanel Grid.Row="1" Margin="363,5,362,115">
            <TextBlock TextWrapping="Wrap" Text="Nom du cadeau " Foreground="Black" FontSize="36"/>
            <TextBlock TextWrapping="Wrap" Height="15"/>
            <TextBox x:Name="Nom" TextWrapping="Wrap" Text="Entrez un nom de cadeau "/>
            <TextBlock TextWrapping="Wrap" Height="15"/>
            <TextBlock TextWrapping="Wrap" Text="Quantité " Foreground="Black" FontSize="36"/>
            <TextBlock TextWrapping="Wrap" Height="15"/>
            <TextBox x:Name="Quantite" TextWrapping="Wrap" Text="Donnez la quantité"/>
            <TextBlock TextWrapping="Wrap" Height="15"/>
            <TextBlock TextWrapping="Wrap" Text="Description" FontSize="36" Foreground="Black"/>
            <TextBlock TextWrapping="Wrap" Height="15"/>
            <TextBox x:Name="Description" TextWrapping="Wrap" Text="Donnez la description"/>
            <TextBlock TextWrapping="Wrap" Height="15"/>
            <TextBlock TextWrapping="Wrap" Text="Image" Foreground="Black" FontSize="36" Margin="0,0,513,0"/>
            <TextBlock TextWrapping="Wrap" Height="15"/>
            <Border BorderBrush="Black" BorderThickness="1" Height="87">
                <Image x:Name="Image" HorizontalAlignment="Left" Height="87" Margin="-1" VerticalAlignment="Top" Width="641" Stretch="Fill"/>
            </Border>
            <Button x:Name="add_image" Content="ajouter une image" HorizontalAlignment="Stretch" VerticalAlignment="Stretch" Click="add_image_Click" Height="38"/>
        </StackPanel>
        <Button x:Name="bouton_valider" Content="valider" HorizontalAlignment="Left" Height="45" Margin="1014,519,0,0" Grid.Row="1" VerticalAlignment="Top" Width="234"
                Click="bouton_valider_Click"/>
    </Grid>

    <Page.BottomAppBar>
        <AppBar Padding="10,0,10,0" AutomationProperties.Name="Bottom App Bar" FlowDirection="LeftToRight">
            <Grid>
                <StackPanel x:Name="RightPanel" Orientation="Horizontal" Grid.Column="1" HorizontalAlignment="Right">
                    <Button x:Name="Search" Style="{StaticResource SearchAppBarButtonStyle}" Tapped="Search_Tapped" />
                </StackPanel>
            </Grid>
        </AppBar>
    </Page.BottomAppBar>
</Page>